<template>
  <div class="login">
    <div class="logo">
      <img src="static/images/logo.png" alt="">
    </div>
    <p class="welcome">欢迎英雄归来</p>
    <div class="btn-group">
      <button class="btn first" @click="goTutorial">从这里开始</button>
    </div>
    <footer>
      <span>已在使用公益联盟？</span>
      <router-link to="/login/signin">直接登陆>></router-link>
    </footer>
  </div>
</template>

<script>
export default {
  name: 'login',
  data () {
    return {
    }
  },
  methods: {
    goTutorial () {
      this.$router.push({
        name: 'tutorial'
      })
    }                            // 进入引导页
  }
}
</script>

<style lang="scss" scoped>
.login {
  height: 100%;
  width: 100%;
  background-color: #8cc63f;
}
.logo {
  padding-top: 98px;
  margin: 0 auto;
  width: 300px;
  img {
    width: 300px;
    height: 300px;
  }
}
.welcome {
  font-size: 60px;
  color: #fff;
  text-align: center;
  margin-top: 100px;
}
.btn-group {
  margin: 20px 80px;
  position: relative;
  .btn {
    margin-top: 40px;
    width: 100%;
    height: 138px;
    font-size: 40px;
    border-radius: 10px;
    &.first {
      background-color: #1435ad;
      color: #fff;
    }
    &.second {
      background-color: #fff;
      color: #808080;
    }
  }
}
footer {
  position: fixed;
  bottom: 43px;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 26px;
  a {
    color: #fff;
    font-weight: bolder;
  }
}
</style>
